package Background;

/**
 * A child class of the user.  This class describes a judge, or a user who is judging the 
 * entries of others.
 * 
 * @author Chris Petcher
 * @version 1/30/2013
 * 
 */

public class Judge extends User {
	
	/**
	 * Constructor for the user who is also a judge.  Sends the incoming arguments to the 
	 * super for use in that constructor.  Also adds the judge to the judge list.  
	 * @param name The first and last name of the judge.
	 * @param email The email provided by the user upon registration.
	 * @param confirm A variable used to confirm the email address.
	 * @param userName The user name chosen by the user upon registration.
	 * @param password The password chosen by the user upon registration.
	 * @param number The phone number provided by user upon registration.
	 */

	public Judge(final String name, final String email, final String confirm, 
			final String username, final String password, final String number) {
		super(name, email, confirm, username, password, number, false);
		addJudge(this);

	}
	
}
	